import App from './App'
import uvUI from '@/uni_modules/uv-ui-tools';
import { Request } from '@/utils/request'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false;
Vue.use(uvUI);
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount();
// 引入请求封装
Request(app)
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue';
import  {createPinia} from 'pinia';
const pinia = createPinia();
export function createApp() {
  const app = createSSRApp(App);
  app.use(uvUI);
  app.use(pinia);
  // 引入请求封装
  Request(pinia)
  return {
    app,pinia
  }
}
// #endif